package com.xhai.common.constant;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * @author xhai
 * @description Redis存储常量
 * @date 2025/5/26
 */
@Schema(description = "Redis存储常量")
public class RedisConstants {

    /**
     * 验证码Key前缀
     */
    @Schema(description = "验证码Key前缀")
    public static final String REDIS_KEY_PREFIX_CAPTCHA = "captcha:";
    /**
     * 验证码生效时间（分钟）
     */
    @Schema(description = "验证码生效时间（分钟）")
    public static final Integer REDIS_KEY_EXPIRE_CAPTCHA = 2;
    /**
     * 登录用户权限信息Key前缀
     */
    @Schema(description = "登录用户权限信息Key前缀")
    public static final String REDIS_KEY_PREFIX_LOGIN_USER = "login_user_key:";
    /**
     * 密码错误最大重试次数
     */
    @Schema(description = "密码错误最大重试次数")
    public static final String REDIS_KEY_PREFIX_PWD_ERROR_COUNT = "pwd_error_count:";
    /**
     * 密码错误锁定时间
     */
    @Schema(description = "密码错误锁定时间")
    public static final String REDIS_KEY_PREFIX_LOCK_TIME = "pwd_error_lock_time";
}
